package com.xframework.security.model;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xframework.annotation.MappingColumn;
import com.xframework.annotation.MappingTable;
import com.xframework.model.BaseModel;

/**
 * 
 * 角色表.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@MappingTable(tableName = "SECURITY_ROLE")
public class Role extends BaseModel {
	/**
	 * 角色id.
	 */
	@MappingColumn(columnName = "ROLE_ID", columnPk = true, columnLength = 32)
	private String roleId;
	/**
	 * 角色名称.
	 */
	@MappingColumn(columnName = "ROLE_NAME")
	private String roleName;

	@MappingColumn(columnName = "ROLE_REMARK")
	private String roleRemark;

	@MappingColumn(columnName = "APPLICATION_ID")
	private String applicationId;
	/**
	 * 创建时间.
	 */
	@MappingColumn(columnName = "ROLE_CREATE_TIME")
	private String roleCreateTime;
	/**
	 * 修改时间.
	 */
	@MappingColumn(columnName = "ROLE_MODIFY_TIME")
	private String roleModifyTime;

	List<Resource> resourceList;

    public Role() {
    }

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleRemark() {
		return roleRemark;
	}

	public void setRoleRemark(String roleRemark) {
		this.roleRemark = roleRemark;
	}

	public String getApplicationId() {
		return applicationId;
	}

	public void setApplicationId(String applicationId) {
		this.applicationId = applicationId;
	}

	public String getRoleCreateTime() {
		return roleCreateTime;
	}

	public void setRoleCreateTime(String roleCreateTime) {
		this.roleCreateTime = roleCreateTime;
	}

	public String getRoleModifyTime() {
		return roleModifyTime;
	}

	public void setRoleModifyTime(String roleModifyTime) {
		this.roleModifyTime = roleModifyTime;
	}

	public List<Resource> getResourceList() {
		return resourceList;
	}

	public void setResourceList(List<Resource> resourceList) {
		this.resourceList = resourceList;
	}
}
